package com.crm.domain.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import nonapi.io.github.classgraph.json.Id;

import java.time.LocalDateTime;

@Data
@ApiModel(description = "通知实体类")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName(value = "notice", autoResultMap = true)
public class Notice {
    @Id
    @ApiModelProperty(value = "id主键", required = true)
    private Integer noticeId;

    @ApiModelProperty(value = "创建人", required = true)
    private String createBy;

    @ApiModelProperty(value = "创建时间", required = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新人", required = true)
    private String updateBy;

    @ApiModelProperty(value = "更新时间", required = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "通知标题", required = true)
    private String noticeTitle;

    @ApiModelProperty(value = "通知类型")
    private String noticeType;

    @ApiModelProperty(value = "通知内容", required = true)
    private String noticeContent;

    @ApiModelProperty(value = "状态")
    private String status;

    @ApiModelProperty(value = "id")
    private Long noticeUserId;
}
